<?php
/*
 * @Author: 孙开源 && sunkaiyuan@namenode.cn
 * @Date: 2023-04-12 16:45:39
 * @LastEditors: 孙开源 && sunkaiyuan@namenode.cn
 * @LastEditTime: 2023-04-20 09:53:45
 * @Description: 工艺接口
 * 
 */

namespace zhijingfeisuo\Formula;

use zhijingfeisuo\Kernel\Client as BaseClient;

class Client extends BaseClient
    {


    public function query(
        $code = '',
        $pageNo = 1,
        $pageSize = 20
    ) {
        return $this->postJson('dyeing-formula/formula/pageQuery', [
            'code'     => $code,
            'pageNo'   => $pageNo,
            'pageSize' => $pageSize,
            'source'   => [0, 1, 5, 6]
        ]);
        }
    /**
     * 查询出来的ID 查询LAB值
     * @param mixed $id
     * @return array|object|string|\Psr\Http\Message\ResponseInterface|\zhijingfeisuo\Kernel\Support\Collection
     * @author sunkaiyuan
     */
    public function queryById(
        $id = '',
    ) {
        return $this->postJson('dyeing-formula/formula/queryById', [
            'id'     => $id,
            'source' => [0, 1]
        ]);
        }

    }